#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

struct S1
{
	char c1;
	char c2;
	int i;
};

struct S2
{
	double d;
	char c;
	int i;
};

struct S3
{
	char c1;
	struct S2 s2;
	double d;
};

int main()
{
	printf("%u\n", sizeof(struct S1));
	printf("%u\n", sizeof(struct S2));
	printf("%u\n", sizeof(struct S3));
	return 0;
}

//struct S
//{
//	char c;
//	int a;
//};
//
//struct B
//{
//	double d;
//	struct S s;
//	int i;
//};
//
//int main()
//{
//	struct B b1 = { 3.14,{'x',5},10 };
//	printf("%lf  %c  %d  %d\n", b1.d, b1.s.c, b1.s.a, b1.i);
//	struct B* pb = &b1;
//	printf("%lf  %c  %d  %d\n", pb->d, (pb->s).c, (pb->s).a, pb->i);
//	return 0;
//}